<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/8/23
 * Time: 11:50
 * name:删除课程
 * url:/erpCourse/delete_course
 */

//获取参数
$oc_id = $route->bodyParams["oc_id"];//主键ID

$whereArr = [
    "oc_id" => $oc_id
];

//执行写入语句
$rsData = $db->mysqlDB->delete("oa_course",$whereArr,false);

//返回成功结果
$response->responseData( true, $rsData );